import axios from 'axios';
import { page } from '@/types/global';

export function getUserPage(params: any): Promise<page> {
  return axios.get('/demo/user/page', {
    params,
  });
}

export function saveUserInfo(data: any) {
  return axios.post('/demo/user', data);
}

export function updateUserInfo(data: any) {
  return axios.put('/demo/user', data);
}
export function delUserInfo(id: string) {
  return axios.delete(`/demo/user/${id}`);
}
